import Http from '../../http';


export const getList = function (queryModel: any) {
    return Http.get('/OndutyData/index', queryModel)
}
export const getEdit = function (id: number) {
    return Http.get('/OndutyData/AddOrEdit', { id: id })
}
export const postAdd = function (from: any) {
    return Http.post('/OndutyData/Create', from)
}
export const putEdit = function (from: any) {
    return Http.put('/OndutyData/Edit', from)
}
export const delOne = function (id: number) {
    return Http.delete('/OndutyData/Delete', { id: id })
}


export const getCatList = function (queryModel: any) {
    return Http.get('/OndutyCat/index', queryModel)
}
export const getCatEdit = function (id: number) {
    return Http.get('/OndutyCat/AddOrEdit', { id: id })
}
export const postCatAdd = function (from: any) {
    return Http.post('/OndutyCat/Create', from)
}
export const putCatEdit = function (from: any) {
    return Http.put('/OndutyCat/Edit', from)
}
export const delCatOne = function (id: number) {
    return Http.delete('/OndutyCat/Delete', { id: id })
}